package payroll.webapp

class EmployeeSalarySlip implements Serializable{
	
	Integer empSal_SalID
	Integer empSal_empID
	Integer empSal_month
	Integer empSal_year
	String empSal_empDept
	Double empSal_basicSalary_earned
	Double empSal_monthIncentives_earned
	Double empSal_houseAllowance_earned
	Double empSal_otherAllowance_earned
	Date empSal_txnDate
	Double empSal_totalTaxable_claim
	Double empSal_IncomeTax_liability
	Double empSal_nonTaxable_claim
	Double empSal_Employee_Insur_Contr
	Double empSal_Opt_Insur_Contr
	SalaryCalcTypes salaryCalcType
	ResidentialTypes residenceType
	EmployeeSalaryStatus empSalStatus
	Date dateCreated
	Date lastModified
	String createdBy
	String lastModifiedBy

    static constraints = {
		
		empSal_SalID(nullable:false,unique:true)
		empSal_empID(nullable:false,unique:true)
		empSal_month(nullable:false,unique:true)
		empSal_year(nullable:false,unique:true)
		empSal_empDept(nullable:true)
		/*empSal_basicSalary_earned(nullable:false)
		empSal_monthIncentives_earned(nullable:false)
		empSal_houseAllowance_earned(nullable:false)
		empSal_otherAllowance_earned(nullable:false)
		empSal_txnDate(nullable:false)
		empSal_totalTaxable_claim(nullable:false)
		empSal_IncomeTax_liability(nullable:false)
		empSal_nonTaxable_claim(nullable:false)
		empSal_Employee_Insur_Contr(nullable:false)
		empSal_Opt_Insur_Contr(nullable:false)*/
		salaryCalcType(nullable:true)
		residenceType(nullable:true)
		empSalStatus(nullable:true)
		dateCreated(nullable:true)
		lastModified(nullable:true)
		createdBy(nullable:true)
		lastModifiedBy(nullable:true)
		
    }
	
	static mapping = {
		table "EmployeeSalarySlip"
		id composite : ['empSal_SalID','empSal_empID','empSal_month','empSal_year']
	}
}
